package com.shanzmoo.core.domain.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 *
 *
 * @author： Gzhao 2021/3/28
 */
@Data
public class AuthMenuRouterVO {

    @ApiModelProperty("菜单")
    private List<MenuAuthVO> menuList;

    @ApiModelProperty("路由")
    private List<RouterAuthVO> routerList;

    public static AuthMenuRouterVO create(List<MenuAuthVO> menuList, List<RouterAuthVO> routerList) {
        AuthMenuRouterVO routerVO = new AuthMenuRouterVO();
        routerVO.setMenuList(menuList);
        routerVO.setRouterList(routerList);

        return routerVO;
    }
}
